<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<input type="text" name="" id="" value="" v-model="name" />
			<h1>{{ name | Upper }}</h1>
		</div>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var app = new Vue({
				el: '#app',
				data() {
					return {
						name: 'zhonghui'
					}
				},
				// 声明一个本地的过滤器
				filters: {
					Upper: function(value) {
						return value.toUpperCase()
					},
				}
			})
		</script>


	</body>
</html>
